package com.mlxg.test;/**
 * @author zcy
 * @date 2025/5/19 15:41
 */

import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mlxg.master.domain.HzExhibitor;
import com.mlxg.master.service.HzExhibitorSourceService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.sql.DataSource;
import java.sql.SQLException;

/**
 *   @author zcy
 *   @date 2025/5/19 15:41
 *   @description: 测试数据源
 */
//@SpringBootTest
public class SpringbootTestDatasources {

    public static void main(String[] args) {
        int j=0;
        for (int i = 0; i < 10; i++) {
            try {
                if (i==5){
                  int c=  1/0;
                }
                System.out.println("i = " + i);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
